//
// Created by czm on 2023/12/21.
//

#ifndef DDWK_RFID_SCAN_CARDUTILS_H
#define DDWK_RFID_SCAN_CARDUTILS_H

#include <list>
#include <mutex>

struct CardInfo{
    char* szCard;
    bool isSend;
};

class CardUtils {
public:
    CardUtils();
    virtual ~CardUtils();

    void addCard(char* szCard);
    void reset();

    void notifyCard();

private:
    std::list<struct CardInfo*> cardList;
    std::mutex mutex;
};

extern CardUtils* g_pCardUtils;

#endif //DDWK_RFID_SCAN_CARDUTILS_H
